public abstract class Projectile extends Entity
{
  public Projectile(int xpos, int ypos)
  {
    this.xpos = xpos;
    this.ypos = ypos;
    this.renderSizeX = 12;
    this.renderSizeY = 16;
  }

  public abstract void updatePosition(AnimationContext context);

  public boolean isOutsideZone()
  {
    return ypos < 0 || ypos > height;
  }
  
  public abstract void display();
  
  protected void renderRectangle()
  {
    rect(xpos, ypos, renderSizeX, renderSizeY);
  }
}

